home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
- From: Dan Pop <danpop@mail.cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: The size of a file
- Date: Sun, 4 Feb 1996 16:58:17 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602041558.AA18993@dxmint.cern.ch>
- References: <4ebc03$4gv@gate.compart.fi>,<11a7cc$142013.177@news.comet.net> <DM85t1.2rq@news.cern.ch>
- X-NNTP-Posting-Host: hpl3sn03.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
-
- loreti@mxsld2.pd.infn.it (Maurizio Loreti) writes:
-
- >The %ld is correct for a long; a fpos_t should be casted to (unsigned
- >long) and printed as such.
-
- Except that fpos_t may not be an arithmetic type at all and the cast will
- result in your code being rejected by the compiler.
-
- fpos_t can be portably used only with the fgetpos and fsetpos functions.
-
- The reason fpos_t and the related functions were introduced in the language
- is that a long may not be large enough to record the value of the file
- position indicator.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-